import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isCollapse: false, // 控制管理系统列表收缩
    deptId: '',
    subMenus: [] // 路由表
  },
  mutations: {
    SET_Collapse (state, data) {
      state.isCollapse = data
    },
    SET_DeptId (state, data) {
      state.deptId = data
    },
    SET_SubMenus (state, data) {
      state.subMenus = data
    }
  },
  actions: {
  },
  modules: {
  }
})
